function CommentList(props){
    return (
        <ul>
            { props.list.map(item => (
                <li key={item.id}>
                    <h5>{item.name}</h5>
                    <div>{item.comment}</div>
                </li>
            ))}
        </ul>
    )
}
export default CommentList